package com.smxy.daydayup.service;

import com.smxy.daydayup.pojo.Question;
import com.smxy.daydayup.pojo.QuestionSort;
import com.smxy.daydayup.pojo.ao.QuestionAo;

import java.util.List;

/**
  * @team daydayup
  * @time 2021-12-06 21:45
  */
public interface QuestionService{


    int deleteByPrimaryKey(Long questionId);

    int insert(Question record);

    int insertSelective(Question record);

    QuestionAo selectByPrimaryKey(Long questionId);

    int updateByPrimaryKeySelective(Question record);

    int updateByPrimaryKey(Question record);

    int createQuestion(QuestionAo record);

    int deleteByLogic(Long questionId,boolean flag);

    List<Question> selectQuestionList(Long courseId,
                                      Integer isDelete);

    List<Question> selectQuestionListBySort(Long courseId,
                                            Long questionSortId,
                                            Integer isDelete);
}
